<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
	<parent>
        <artifactId>gbzntptBack</artifactId>
        <groupId>com.tonghui</groupId>
        <version>1.0</version>
    </parent>
    <packaging>war</packaging>
    <artifactId>admin</artifactId>

    <description>
        web服务入口
    </description>

    <dependencies>

        <!-- spring-boot-devtools -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional> <!-- 表示依赖不会传递 -->
        </dependency>

        <!-- swagger3-->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-boot-starter</artifactId>
        </dependency>

        <!-- 防止进入swagger页面报类型转换错误，排除3.0.0中的引用，手动增加1.6.2版本 -->
        <dependency>
            <groupId>io.swagger</groupId>
            <artifactId>swagger-models</artifactId>
        </dependency>

        <dependency>
            <groupId>com.oracle.database.jdbc</groupId>
            <artifactId>ojdbc8</artifactId>
        </dependency>
        
        <dependency>
			<groupId>org.postgresql</groupId>
			<artifactId>postgresql</artifactId>
		</dependency>
        
        <dependency>
		    <groupId>cn.easyproject</groupId>
		    <artifactId>orai18n</artifactId>
		    <version>12.1.0.2.0</version>
		</dependency>

        <!-- 核心模块-->
        <dependency>
            <groupId>com.tonghui</groupId>
            <artifactId>framework</artifactId>
        </dependency>
        
        <!-- 业务模块-->
        <dependency>
            <groupId>com.tonghui</groupId>
            <artifactId>module</artifactId>
        </dependency>
        
        <!-- 物联网模块-->
        <!-- <dependency>
            <groupId>com.tonghui</groupId>
            <artifactId>iot</artifactId>
        </dependency> -->
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.1.1.RELEASE</version>
                <configuration>
                    <fork>true</fork> <!-- 如果没有该配置，devtools不会生效 -->
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>   
                <groupId>org.apache.maven.plugins</groupId>   
                <artifactId>maven-war-plugin</artifactId>   
                <version>3.1.0</version>   
                <configuration>
                    <!-- maven打包的时候告诉maven不需要web.xml,否刚会报找不到web.xml错误 -->
			      	<failOnMissingWebXml>false</failOnMissingWebXml>
			      	<webResources>
			         	<resource>
			            	<directory>../module/src/main/resources/lib</directory>
			            	<targetPath>WEB-INF/lib/</targetPath> <!-- 打入war包的位置 -->
			            	<includes>
			               		<include>**/*.jar</include>
			            	</includes>
			         	</resource>
			         	<resource>
			            	<directory>../common/src/main/resources/lib</directory>
			            	<targetPath>WEB-INF/lib/</targetPath> <!-- 打入war包的位置 -->
			            	<includes>
			               		<include>**/*.jar</include>
			            	</includes>
			         	</resource>
			      	</webResources>
                </configuration>   
           </plugin>   
        </plugins>
        <finalName>prod-api</finalName>
    </build>

</project>